#ifndef meallistpanel_h
#define meallistpanel_h

#include "juce_amalgamated.h"
#include "ListPanel.h"
#include "MealView.h"
#include <iterator>

class MealListPanel: public ListPanel
{
private:
	MealView* mealView;
//	deque<Eatable> items;
public:
	MealListPanel(MasterComponent* master, int w, int h);
	void paint(Graphics& g);
	void mouseDown(const MouseEvent& e);
	void switchPanels(int from, int to);
	void showItemView(int row);
	deque<Eatable>& getEatableList();
	void doubleClicked(const MouseEvent& e);
};

#endif
